import {request} from '@/utils/request'

const apiUrl = '/api/v1/trace'

export function info(id) {
  return request({
    url: apiUrl + '/' + id,
    method: 'get'
  })
}

//添加
export function add(data) {
  return request({
    url: apiUrl,
    method: 'post',
    data
  })
}

//编辑
export function edit(data) {
  return request({
    url: apiUrl,
    method: 'put',
    data
  })
}

//添加操作
export function optionsAdd(data) {
  return request({
    url: `${apiUrl}/op`,
    method: 'post',
    data
  })
}

//添加检测
export function checkAdd(data) {
  return request({
    url: `${apiUrl}/check`,
    method: 'post',
    data
  })
}
